/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.p10.miage.gestionabsence.model;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Sofian Seid
 */
public class Intervenant extends Utilisateur{
    
    private int idI;
    private String tel;
    private int idStat;
    private String enService;

    public Intervenant() {
        super();
    }

    public Intervenant(int idI, String tel, int idStat, String enService, String nom, String prenom, String mail, String passwd) {
        super(nom, prenom, mail, passwd);
        this.idI = idI;
        this.tel = tel;
        this.idStat = idStat;
        this.enService = enService;
    }

    public int getIdI() {
        return idI;
    }

    public void setIdI(int idI) {
        this.idI = idI;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getIdStat() {
        return idStat;
    }

    public void setIdStat(int idStat) {
        this.idStat = idStat;
    }

    public String getEnService() {
        return enService;
    }

    public void setEnService(String enService) {
        this.enService = enService;
    }
    
    @Override
    public void init(ResultSet resultat) throws SQLException{
        super.init(resultat);
        this.idI = resultat.getInt("IDI");
        this.tel = resultat.getString("TEL");
        this.idStat = resultat.getInt("IDSTAT");
        this.enService = resultat.getString("ENSERVICE");
    }
}
